const express = require('express');
const router = express.Router();
const OrderController = require('@controllers/admin/order.controller');
const { adminAuth } = require('@middlewares/auth');

// 获取订单列表
router.get('/orders', adminAuth, OrderController.getOrders);

// 获取订单统计
router.get('/orders/stats', adminAuth, OrderController.getOrderStats);

// 获取订单详情
router.get('/orders/:id', adminAuth, OrderController.getOrder);

// 更新订单状态
router.put('/orders/:id/status', adminAuth, OrderController.updateOrderStatus);

// 批量发货
router.post('/orders/batch/ship', adminAuth, OrderController.batchShip);

module.exports = router; 